<%--
  User: Aleksey
  Date: 03.03.2009
  Time: 2:37:06
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<f:view locale="#{localeManager.locale}">
    <f:loadBundle var="msgs" basename="messages"/>
    <head>
        <title><h:outputText value="#{msgs['title']}"/></title>
        <link href="olga.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h:form id="formlogin">
            <%@include file="logoPanel.jspf"%>
            <%@include file="navigationPanel.jspf"%>
            <h:outputText value="#{msgs.welcomeTo}"/><br/><br/>
            <h:outputText value="Hello, #{data.user.fullName}" rendered="#{data.user.loggedIn}"/>
            <h:outputText value="#{msgs.pleaseLogin}" rendered="#{!data.user.loggedIn}"/>
            <h3><h:outputText value="#{msgs.enterUsername}: " rendered="#{!data.user.loggedIn}"/><h:inputText id="username" rendered="#{!data.user.loggedIn}"/></h3>
            <h3><h:outputText value="#{msgs.enterPassword}: " rendered="#{!data.user.loggedIn}"/><h:inputSecret id="password" rendered="#{!data.user.loggedIn}"/></h3>
            <h3><h:commandButton value="Login" action="#{data.login}" rendered="#{!data.user.loggedIn}"/></h3>
        </h:form>
    </body>
</f:view>
</html>
